package com.lanqiao.attendance.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * * @Author Pu Yunsheng
 * * @Data 2022/7/9 下午 04:42
 * * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long  id;
    @ApiModelProperty("教师编号")
    private String account;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("教师名字")
    private String name;
    @ApiModelProperty("教师性别")
    private String sex;
    @ApiModelProperty("教师年龄")
    private Integer age;
    @ApiModelProperty("教师年龄")
    private String identify;
    @ApiModelProperty("教师手机号")
    private String phone;
    @ApiModelProperty("教师邮箱")
    private String email;
    @ApiModelProperty("住址")
    private String location;
    @ApiModelProperty("教师等级")
    private String level;
    @ApiModelProperty("教师角色")
    private int role;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8"
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("注册时间")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    private Date updateTime;
}
